package com.he.staticproxymodel.decorator;

import com.he.staticproxymodel.subject.GiveGift;

/**
 * 装饰器类
 */
public class GiftDecorator implements GiveGift {

    protected GiveGift giveGift;

    public GiftDecorator(GiveGift giveGift) {
        this.giveGift = giveGift;
    }

    @Override
    public void giveGift() {
        giveGift.giveGift();
    }
}
